//
//  ToggleBoot.swift
//  SwiftUIWidgetDemo
//
//  Created by alanzhangg on 2023/7/16.
//

import SwiftUI

struct ToggleBoot: View {
    
    @State var toggle: Bool = false
    
    var body: some View {
        Toggle(isOn: $toggle, label: {
            Text("Label")
        })
        .toggleStyle(SwitchToggleStyle(tint: .red))
    }
}

#Preview {
    ToggleBoot()
}
